/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.entry.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 质检单Entity
 * @author alex
 * @version 2017-05-04
 */
public class EntryCheckHeader extends DataEntity<EntryCheckHeader> {
	
	private static final long serialVersionUID = 1L;
	private String no;		// 采购单号
	private String enBillNo;		// 入库单号
	private String enBillType;		// 入库单类型
	private String publishId;		// 采购单ID
	private String publishNo;		// 采购单号
	private String supplierId;		// 供应商ID
	private String supplierName;		// 供应商名称
	private String checkNum;		// 抽检数量
	private String num;		// 总数量
	private String qualifiedNum;		// 合格数
	private String unqualifiedNum;		// 不合格数
	private String checkName;		// 质检人
	private String checkDate;		// 质检日期
	private String status;		// 状态
	private String auditBy;		// 审核人ID
	private String auditName;		// 审核人
	private Date auditDate;		// 审核时间
	private String createName;		// 创建人
	private String updateName;		// 更新人
	private String qualified;		// 合格率
	
	public EntryCheckHeader() {
		super();
	}

	public EntryCheckHeader(String id){
		super(id);
	}

	@Length(min=0, max=30, message="采购单号长度必须介于 0 和 30 之间")
	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}
	
	@Length(min=0, max=30, message="入库单号长度必须介于 0 和 30 之间")
	public String getEnBillNo() {
		return enBillNo;
	}

	public void setEnBillNo(String enBillNo) {
		this.enBillNo = enBillNo;
	}
	
	@Length(min=0, max=1, message="入库单类型长度必须介于 0 和 1 之间")
	public String getEnBillType() {
		return enBillType;
	}

	public void setEnBillType(String enBillType) {
		this.enBillType = enBillType;
	}
	
	@Length(min=0, max=30, message="采购单ID长度必须介于 0 和 30 之间")
	public String getPublishId() {
		return publishId;
	}

	public void setPublishId(String publishId) {
		this.publishId = publishId;
	}
	
	@Length(min=0, max=30, message="采购单号长度必须介于 0 和 30 之间")
	public String getPublishNo() {
		return publishNo;
	}

	public void setPublishNo(String publishNo) {
		this.publishNo = publishNo;
	}
	
	@Length(min=0, max=30, message="供应商ID长度必须介于 0 和 30 之间")
	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}
	
	@Length(min=0, max=50, message="供应商名称长度必须介于 0 和 50 之间")
	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}
	
	@Length(min=0, max=11, message="抽检数量长度必须介于 0 和 11 之间")
	public String getCheckNum() {
		return checkNum;
	}

	public void setCheckNum(String checkNum) {
		this.checkNum = checkNum;
	}
	
	@Length(min=0, max=11, message="总数量长度必须介于 0 和 11 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=11, message="合格数长度必须介于 0 和 11 之间")
	public String getQualifiedNum() {
		return qualifiedNum;
	}

	public void setQualifiedNum(String qualifiedNum) {
		this.qualifiedNum = qualifiedNum;
	}
	
	@Length(min=0, max=11, message="不合格数长度必须介于 0 和 11 之间")
	public String getUnqualifiedNum() {
		return unqualifiedNum;
	}

	public void setUnqualifiedNum(String unqualifiedNum) {
		this.unqualifiedNum = unqualifiedNum;
	}
	
	@Length(min=0, max=30, message="质检人长度必须介于 0 和 30 之间")
	public String getCheckName() {
		return checkName;
	}

	public void setCheckName(String checkName) {
		this.checkName = checkName;
	}
	
	@Length(min=0, max=1, message="质检日期长度必须介于 0 和 1 之间")
	public String getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(String checkDate) {
		this.checkDate = checkDate;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=30, message="审核人ID长度必须介于 0 和 30 之间")
	public String getAuditBy() {
		return auditBy;
	}

	public void setAuditBy(String auditBy) {
		this.auditBy = auditBy;
	}
	
	@Length(min=0, max=30, message="审核人长度必须介于 0 和 30 之间")
	public String getAuditName() {
		return auditName;
	}

	public void setAuditName(String auditName) {
		this.auditName = auditName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getAuditDate() {
		return auditDate;
	}

	public void setAuditDate(Date auditDate) {
		this.auditDate = auditDate;
	}
	
	@Length(min=0, max=30, message="创建人长度必须介于 0 和 30 之间")
	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}
	
	@Length(min=0, max=30, message="更新人长度必须介于 0 和 30 之间")
	public String getUpdateName() {
		return updateName;
	}

	public void setUpdateName(String updateName) {
		this.updateName = updateName;
	}
	
	public String getQualified() {
		return qualified;
	}

	public void setQualified(String qualified) {
		this.qualified = qualified;
	}
	
}